package com.ruoyi.swimming.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.swimming.domian.Coupon;

import java.util.List;

/**
 * 优惠券Mapper接口
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public interface CouponMapper extends BaseMapper<Coupon>
{
    /**
     * 查询优惠券
     * 
     * @param id 优惠券ID
     * @return 优惠券
     */
    public Coupon selectCouponById(Long id);

    /**
     * 查询优惠券列表
     * 
     * @param coupon 优惠券
     * @return 优惠券集合
     */
    public List<Coupon> selectCouponList(Coupon coupon);

}
